<template>
  <div>
    <!-- 给组件添加缓存 -->
    <keep-alive>
      <!-- 路由出口 -->
      <router-view v-if="$route.meta.needKeep"> </router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.needKeep"> </router-view>
  </div>
</template>

<script>
export default {};
</script>

<style>
</style>